//
//  UIResponder_Extras.m
//  UI_Test_Frame
//
//  Created by tdh1 on 01/09/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "UIResponder_Extras.h"
#import "UIDataRecorder.h"
#import "UI_Test_FrameAppDelegate.h"

@implementation UIResponder (Extras)

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
	[[UIDataRecorder sharedDataRecorder] addEvent:touchTypeBegan andTouches:touches andEvent:event];
}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
	[[UIDataRecorder sharedDataRecorder] addEvent:touchTypeEnded andTouches:touches andEvent:event];
}

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
	[[UIDataRecorder sharedDataRecorder] addEvent:touchTypeMoved andTouches:touches andEvent:event];
}

- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
{
	[[UIDataRecorder sharedDataRecorder] addEvent:touchTypeCancelled andTouches:touches andEvent:event];
}

@end
